package cn.tedu.boot61.controller;

import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class AxiosController {
    //@ResponseBody是用来响应客户端 发送响应正文
    //@RequestBody获取消息正文 因为post请求参数内容在消息正文中
    @RequestMapping("/helloAxios")
    public String hello(@RequestBody String info){
        return "请求成功! info="+info;
    }
}
